﻿using iTaskService.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace iTaskService
{
    
    [ServiceContract]
    public interface ITaskService
    {
        // True if user and pass is existed in database
        [OperationContract]
        bool IsUser(String username, String password);

        [OperationContract]
        Account CreateUser(String username, String password, String Email);

        // Get data from server
        [OperationContract]
        Account GetData(String username, String password);

        // Transfer data to server
        [OperationContract]
        bool UploadData(String username, String password, Account data);



    }
}
